package com.apex.wx.company.util;

/**
 * Created by 18424 on 2017/11/9.
 */

/**
 * 获取发送消息的类型
 */
public class MsgType {

    public  String GetMsgType(String type){
        if(type.equalsIgnoreCase("text")){
            type="text";
        }
        if(type.equalsIgnoreCase("image")){
            type="image";
        }
        if(type.equalsIgnoreCase("voice")){
            type="voice";
        }
        if(type.equalsIgnoreCase("video")){
            type="video";
        }
        if(type.equalsIgnoreCase("file")){
            type="file";
        }
        if(type.equalsIgnoreCase("textcard")){
            type="textcard";
        }
        if(type.equalsIgnoreCase("news")){
            type="news";
        }
        if(type.equalsIgnoreCase("mpnews")){
            type="mpnews";
        }
        return type;
    }
}

